package com.glory.wxelectricitypda.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.wxelectricitypda.R;
import com.glory.wxelectricitypda.bean.EqpEntoty;

import java.util.List;

public class TOOLDataAdapter extends BaseQuickAdapter<EqpEntoty.FixtureBean, BaseViewHolder> {

    public TOOLDataAdapter(@Nullable List<EqpEntoty.FixtureBean> data) {
        super(R.layout.item_mlot_info,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, EqpEntoty.FixtureBean item) {

        helper.setText(R.id.tvmLotid,item.getMLOTID());
        helper.setText(R.id.tvPartnerLotid,item.getMATERIALNAME());
        helper.setText(R.id.tvMaterialType,item.getMATERIALTYPE());
        helper.setText(R.id.tvMaterialName,item.getMATERIALDESC());
        helper.setText(R.id.tvMainQty,String.valueOf(item.getMAINQTY()));

    }
}
